package questions;

import java.util.ArrayList;

public class Questions {
	private ArrayList<Question> questions;
    public Questions()
    {
    	questions=new ArrayList<Question>();
    }
	public int length() {
		return questions.size();
	}

	public void add(Question question) {
		questions.add(question);
	}
	
	public String getQuestion(int index) {
		return questions.get(index).getQuestion();
	}
	public String getCorrectAnswer(int index) {
		return questions.get(index).getCorrectAnswer();
	}
	public String getAnswers(int index) {
		return questions.get(index).getAnswers();
	}
	public boolean isCorrectAnswer(int index, String answer)
	{
		return questions.get(index).isCorrectAnswer(answer);
	}
}
